package util
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Loader;
	import flash.events.*;
	import flash.net.URLRequest;
	
	import org.osmf.events.LoadEvent;

	public class AssetsManager
	{
		public function AssetsManager()
		{
		}
		
		public static function getResource(name:String):BitmapData {
			var loader:Loader = new Loader();
			loader.load(new URLRequest("assets/"+name));
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoader);
			return (loader.content as Bitmap).bitmapData;
		}
		
		public static function onLoader(event:Event):void {
			
		}
	}
}